<?php

class m120409_104128_create_document extends EDbMigration {

	public function safeUp() {
		$documents = array(
			'id'=>'pk',
			'code'=>'string',
			'extension'=>'varchar(4)',
			'synopsis'=>'text',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
		);
		$this->createTable('documents', $documents);
	}

	public function safeDown() {
		$this->dropTable('documents');
	}

}